import { RouteRecordRaw } from 'vue-router'

const systemRoutes: RouteRecordRaw = {
  path: '/system',
  name: 'System',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: '系统管理',
    icon: 'Setting'
  },
  children: [
    {
      path: 'user',
      name: 'User',
      component: () => import('@/views/system/user/index.vue'),
      meta: {
        title: '用户管理',
        icon: 'User'
      }
    },
    {
      path: 'role',
      name: 'Role',
      component: () => import('@/views/system/role/index.vue'),
      meta: {
        title: '角色管理',
        icon: 'UserFilled'
      }
    },
    {
      path: 'permission',
      name: 'Permission',
      component: () => import('@/views/system/permission/index.vue'),
      meta: {
        title: '菜单管理',
        icon: 'Menu',
        transition: 'slide-fade'
      }
    },
    {
      path: 'logs',
      name: 'OperationLog',
      component: () => import('@/views/system/operationLog/index.vue'),
      meta: {
        title: '操作日志',
        icon: 'Document',
        keepAlive: true
      }
    },
    {
      path: 'organization',
      name: 'Organization',
      component: () => import('@/views/system/organization/index.vue'),
      meta: {
        title: '机构管理',
        icon: 'Office',
        keepAlive: true
      }
    },
    {
      path: 'position',
      name: 'Position',
      component: () => import('@/views/system/position/index.vue'),
      meta: {
        title: '岗位管理',
        icon: 'Suitcase',
        keepAlive: true
      }
    },
    {
      path: 'dict',
      name: 'Dict',
      component: () => import('@/views/system/dict/index.vue'),
      meta: {
        title: '字典管理',
        icon: 'Collection',
        keepAlive: true
      }
    }
  ]
}

export default systemRoutes 